package com.mandao;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author snail
 */
@SpringBootApplication
@RestController
public class BookServiceApplication {

	@RequestMapping("/available")
	public String available(){
		return "Spring in action" ;
	}

	@RequestMapping("/checked-out")
	public String checkedOut(){
		return "Spring boot in action" ;
	}

	public static void main(String[] args) {
		SpringApplication.run(BookServiceApplication.class, args);
	}

}
